<template>
<div>
  <!--      热门歌手-->
  <div class="u-title">
    <h3>
      <span class="f-ff2">热门歌手</span>
    </h3>
    </div>
  <div class="m-sgerlist">
    <ul class="m-cvrlst">
      <li v-for="(singer,index) in hotSinger1" :key="index">
        <div class="u-cover">
          <img v-lazy="singer.img1v1Url" alt="">
          <router-link :to="{name:'Work',params:{id:singer.id}}" class="main-de"></router-link>
        </div>
        <p>
          <router-link :to="{name:'Work',params:{id:singer.id}}" class="music">{{singer.name}}</router-link>
          <router-link :to="{name:'UserDetail',params:{id:singer.accountId}}" class="detail" v-if="singer.accountId">
            <i class="icon-de"></i>
          </router-link>
        </p>
      </li>
    </ul>
  </div>

  <div style="background-color: #D3D3D3;height: 1px;"></div>
  <ul class="m-cvrlst-5">
    <li class="sml" v-for="(singer,index) in hotSinger2" :key="index">
      <router-link :to="{name:'Work',params:{id:singer.id}}" class="music1">{{singer.name}}</router-link>
      <router-link :to="{name:'UserDetailView',params:{id:singer.accountId,type:1}}" class="detail1" v-if="singer.accountId">
        <i class="icon-de"></i>
      </router-link>
    </li>
  </ul>
</div>
</template>

<script>
export default {
  name: "index",
  props:['hotSinger1','hotSinger2']
}
</script>

<style scoped lang="less">
.u-title {
  height: 40px;
  border-bottom: 2px solid #c20c0c;

  h3 {
    float: left;
    font-size: 24px;
    font-weight: normal;

    .f-ff2 {
      font-family: "Microsoft Yahei", Arial, Helvetica, sans-serif;
    }
  }

  .more {
    float: right;
    margin-top: 14px;
    color: #666;
  }
}
.m-sgerlist {
  width: 736px;
  height: auto;
  margin: 20px auto auto auto;
  overflow: hidden;

  .m-cvrlst {
    width: 758px;
    height: auto;
    overflow: hidden;

    li {
      width: 130px;
      margin-right: 21px;
      margin-bottom: 30px;
      height: 154px;
      float: left;
      display: inline-block;
      overflow: hidden;
      line-height: 1.4;

      .u-cover {
        width: 130px;
        height: 130px;
        position: relative;
        display: block;

        img {
          width: 100%;
          height: 100%;
          display: inline-block;
        }

        .main-de {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-image: url("../../../../assets/coverall.png");
          background-position: 0 -680px;
        }
      }

      p {
        margin-top: 8px;
        width: 100%;

        .music {
          float: left;
          max-width: 80%;
          color: #000;
        }

        .detail {
          float: right;

          .icon-de {
            width: 17px;
            height: 18px;
            background-position: 0 -740px;
            margin-top: -1px;
            display: inline-block;
            overflow: hidden;
            vertical-align: middle;
            background-image: url("../../../../assets/icon.png");
          }
        }
      }
    }
  }
}
.m-cvrlst-5 {
  width: 736px;
  height: auto;
  margin-top: 10px;
  overflow: hidden;

  .sml {
    height: 30px;
    width: 130px;
    float: left;
    margin-left: 17px;
    padding-bottom: 0;
    line-height: 23px;

    .music1 {
      float: left;
      color: #000;
    }

    .detail1 {
      float: left;
      width: 17px;
      height: 18px;
      display: inline-block;
      margin-left: 2px;
      .icon-de {
        width: 17px;
        height: 18px;
        background-position: 0 -740px;
        margin-top: -1px;
        display: inline-block;
        overflow: hidden;
        vertical-align: middle;
        background-image: url("../../../../assets/icon.png");
      }
    }
  }
}
</style>